# -*- encoding: utf-8 -*-
'''
@File    :   Event.py   
@Contact :   desufnocs@163.com
@des     :   项目启动与结束的钩子
 
@Modify Time       @Author      @Version    @Desciption
------------      ----------    --------    -----------
2025/2/17 17:27   AssenImpact      1.0         None
'''

from control import config as CONFIG
from .Utils import create_qrcode, create_key_file, delete_script


def on_startup():
    """
    项目启动时的钩子
    :return:
    """
    if CONFIG.CREATE_QRCODE:
        create_qrcode()

    if CONFIG.CREATE_TOKEN_FILE:
        create_key_file()

    delete_script()
